package com.eff.android.api.model;

import java.io.Serializable;

import com.eff.android.api.enums.Level;
import com.eff.android.api.enums.Subject;
import com.eff.android.api.enums.Type;

public class Setting implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static final String TAG = Setting.class.getSimpleName();
	
	private Subject subject;
	private boolean sound;
	private Type type;
	private Level level;
	
	private static Setting setting = null;
	
	public Setting(){
		sound = true;
		type = Type.Word;
		subject = Subject.Mixed;
		level = Level.Easy;
	}
	
	public static Setting newInstance(){
		if (setting != null)
			return setting;
		setting = new Setting();
		return setting;
	}
	
	public Subject getSubject() {
		return subject;
	}
	public void setSubject(Subject subject) {
		this.subject = subject;
	}
	public boolean isSound() {
		return sound;
	}
	public void setSound(boolean sound) {
		this.sound = sound;
	}
	public Type getType() {
		return type;
	}
	public void setType(Type type) {
		this.type = type;
	}

	public Level getLevel() {
		return level;
	}

	public void setLevel(Level level) {
		this.level = level;
	}
	
}
